package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 建议措施表 实体类
 * 表名：ra_advise_measures
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_advise_measures")
public class RaAdviseMeasures implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 编码
     */
    @Column(name = "advise_code", length = 16)
    private String adviseCode;
    
    /**
     * 建议措施描述
     */
    @Column(name = "advise_desc", length = 512)
    private String adviseDesc;
    
    /**
     * 建议措施类型
     */
    @Column(name = "advise_type")
    private Byte adviseType;
    
    /**
     * 消减等级
     */
    @Column(name = "pfd")
    private BigDecimal pfd;
    
    /**
     * 责任人
     */
    @Column(name = "duty_officer", length = 32)
    private String dutyOfficer;
    
    /**
     * 优先级
     */
    @Column(name = "priority", length = 32)
    private String priority;
    
    /**
     * 完成时间
     */
    @Column(name = "finish_date")
    private java.time.LocalDateTime finishDate;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaAdviseMeasures{" +
            "id=" + id +
            ", adviseCode=" + adviseCode +
            ", adviseDesc=" + adviseDesc +
            ", adviseType=" + adviseType +
            ", pfd=" + pfd +
            ", dutyOfficer=" + dutyOfficer +
            ", priority=" + priority +
            ", finishDate=" + finishDate +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 